<?php /* Smarty version Smarty-3.1.13, created on 2013-05-31 18:23:47
         compiled from ".\templates\closeTables.tpl" */ ?>
<?php /*%%SmartyHeaderCode:31932518591528e74c1-79427156%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'babd179d2078634514d74986a0c07a8d35d0c24c' => 
    array (
      0 => '.\\templates\\closeTables.tpl',
      1 => 1368703516,
      2 => 'file',
    ),
    '325c040ac3eb2e57c3cb2db39552570ef3cca8a8' => 
    array (
      0 => '.\\templates\\main.tpl',
      1 => 1370004730,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '31932518591528e74c1-79427156',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_51859152a09849_40969247',
  'variables' => 
  array (
    's_activId' => 0,
    'waiterVar' => 0,
    'tableVar' => 0,
    'tablePartVar' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51859152a09849_40969247')) {function content_51859152a09849_40969247($_smarty_tpl) {?><?php if (!is_callable('smarty_function_html_options')) include 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\shiv\\include\\smarty\\libs\\plugins\\function.html_options.php';
if (!is_callable('smarty_function_cycle')) include 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\shiv\\include\\smarty\\libs\\plugins\\function.cycle.php';
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <head>
  <title>!! Shiv IceCream !!</title>
  <script type="text/javascript" src="./js/jquery.min.js"></script>
  <script type="text/javascript" src="./js/jquery.autocomplete.js"></script>
  <link href="css/style.css" rel="stylesheet" type="text/css" />
  <link href="./css/jquery-ui.css" rel="stylesheet" type="text/css"/>
  <link href="./css/menu.css" rel="stylesheet" type="text/css" />
  <link href="./css/waiterdiv.css" rel="stylesheet" type="text/css" />
  <link href="./css/jquery.autocomplete.css" rel="stylesheet" type="text/css"/>
  <style type="text/css">
                
	  #itemTable
	  {
	    border-color:black;	
	  }
    .quntity
    {
      width:40px;
    }
    #iceCreams
    {
      font-size:15px;
      background:#FF6666;	
    }
    #ice
    {
      font-size:18px;
      background:#F8F8F8;
      color:red;	
    }
    #ice1
    {
      font-size:15px;
      background:#F8F8F8;	
    }
    .itemColor
    {
     color:black;
    }
    #waiter
    {
      font-size:20px;
    }
    #tableNo
    {
      font-size:20px;
    }
    .class
    {
      width:100px;	
    }
</style>


  <script type="text/javascript">
  	
  	
    //SuckerTree Horizontal Menu (Sept 14th, 06)
    //By Dynamic Drive: http://www.dynamicdrive.com/style/
    var menuids=["treemenu1"] //Enter id(s) of SuckerTree UL menus, separated by commas
    function buildsubmenus_horizontal()
    {
      for (var i=0; i< menuids.length; i++)
      {
        var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul");
        for (var t=0; t<ultags.length; t++)
        {
  		    if(ultags[t].parentNode.parentNode.id==menuids[i])
  		    { 
  		      //if this is a first level submenu
  			    ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px"; //dynamically position first level submenus to be height of main menu item
  			    ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon";
		      }
		      else
		      { 
		  	    //else if this is a sub level menu (ul)
  		      ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px"; //position menu to the right of menu item that activated it
      	    ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon";
		      }
		      
          ultags[t].parentNode.onmouseover=function()
          {
            this.getElementsByTagName("ul")[0].style.visibility="visible";
          }
          ultags[t].parentNode.onmouseout=function()
          {
            this.getElementsByTagName("ul")[0].style.visibility="hidden";
          }
        }
      }
    }
    if (window.addEventListener)
    {
      window.addEventListener("load", buildsubmenus_horizontal, false);
    }
    else if (window.attachEvent)
    {
      window.attachEvent("onload", buildsubmenus_horizontal);
    }

    $(function (){
	    $('.threeToFixed').blur(function(){
		    applyToFixed($(this));
	    });
    });

    function applyToFixed(obj)
    {
	    var objValueToFixed = parseFloat($(obj).val());
			$(obj).val(objValueToFixed.toFixed(2));
    }
    $("#juicePlus").on('click',function(){
      $("#juiceQty").val(parseInt($("#juiceQty").val())+1);
    });
    $("#juiceMinus").on('click',function(){
      $("#juiceQty").val(parseInt($("#juiceQty").val())-1);
    });
`   $("#faludaPlus").on('click',function(){
      $("#faludaQty").val(parseInt($("#faludaQty").val())+1);
    });
    $("#faludaMinus").on('click',function(){
      $("#faludaQty").val(parseInt($("#faludaQty").val())-1);
    });
  

  </script>

</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
    <td class="content">
    <?php if (strlen($_smarty_tpl->tpl_vars['s_activId']->value)>0){?>
      <a href="logout.php" class="link">Logout</a> |
      <a href="index.php?waiter=<?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
&table=<?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
&tablePart='<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
'	">Home</a> |
      <a href="closeTables.php"> Closed Tables </a>	|
      <a href="window8.php" >window8</a>
    <?php }else{ ?>
      <a href="index.php">Home</a> |
      <a href="window8.php" >window8</a> |
      <a href="checklogin.php">Login</a>
      
    <?php }?>
    </td>
  </tr>
  <?php if (strlen($_smarty_tpl->tpl_vars['s_activId']->value)>0){?>
  <tr align="center">
    <td class="bluebg1">
      <div class="suckertreemenu">
      <br />
        <ul id="treemenu1">
	        <li><a href="backup.php" style="width:15px;" class="link">&#2384;</a></li>
        </ul>
      <br /><br /><br />
      </div>
    </td>
  </tr>
  <?php }?>
  <tr>
  <td class="content">

<form name="tables" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>
">
<table align="center"  border="1" cellpadding="2" cellspacing="2" id="tableNo" clsss="waiterdiv" >
		<tr>
		 <td align="center" class="table1" colspan="9" valign="top"><b>Order Master</b></td>
		</td>
		<tr>
		  <td align="center" colspan="9" class="table1">
		    <select name="allTables" autofocus="autofocus" onchange="this.form.submit();">
		    <option value="0">All Table</option>
		      <?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['tableStausValueArr']->value,'output'=>$_smarty_tpl->tpl_vars['tableStausOutputArr']->value,'selected'=>$_smarty_tpl->tpl_vars['allTablesSelected']->value),$_smarty_tpl);?>

		    </select>
		  </td>
		</tr>
		<tr>
			<td class="table1">Payment</td>
			<td class="table1"><b>Print</b></td>
			<td class="table1"><b>Table</b></td>
      <td class="table1"><b>Waiter</b></td>
			<td class="table1"><b>Table Part</b></td>
			<td class="table1" align="right"><b>Total Amount</b></td>
			<td class="table1" align="right"><b>Total Items</b></td>
			<td class="table1"><b>Start Time</b></td>
			<td class="table1"><b>Last Order Time</b></td>
		</tr>
		<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['name'] = "sec";
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['joinResult']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total']);
?>
		<tr class="<?php echo smarty_function_cycle(array('values'=>"odd,even"),$_smarty_tpl);?>
">	
			<td class="table2"><a href="receive.php?orderId=<?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['orderId'];?>
" name="rec"><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['orderstatus'];?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1=='R'){?>Received</a><?php }else{ ?>live<?php }?></td>
		  <td class="table2" align="center"><a href="selectedTable.php?tableId=<?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['tableId'];?>
&tablePart=<?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['tablePart'];?>
&print=1" target="_blank">Print</td>
		  <td class="table2" align="center"><?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['tableId'];?>
</td>
      <td class="table2" align="center"><?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['waiterName'];?>
</td>
		  <td class="table2" align="center"><?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['tablePart'];?>
</td>
		  <td class="table2" align="right"><?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['totalamount'];?>
</td>
		  <td class="table2" align="right"><?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['totalItem'];?>
</td>
		  <td class="table2" align="center"><?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['startTime'];?>
</td>
		  <td class="table2" align="center"><?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['lastordertime'];?>
</td>
		  </tr>
		<?php endfor; endif; ?>
</table>
</form>

  </td>
  </tr>
  <tr>
    <td class="bluebg1">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="images/corner3.gif" width="6" height="7" /></td>
        <td></td>
        <td align="right"><img src="images/corner4.gif" width="6" height="7" /></td>
      </tr>
    </table>
    </td>
  </tr>
</table>
</body><?php }} ?>